home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Tele / C / Comet2.1.3.cpt / azInclude / GetMyIPAddr.h next >
Text File  |  1989-03-28  |  617b  |  28 lines

  1. /* 
  2.     GetMyIPAddr.h    
  3.     C definitions of parameter block entries needed for IP calls
  4.  
  5.     Copyright Apple Computer, Inc. 1989 
  6.     All rights reserved
  7.     
  8. */
  9.  
  10. #define ipctlGetAddr        15            /* csCode to get our IP address */
  11.  
  12. #define ParamBlockHeader     \
  13.     struct QElem *qLink;     \
  14.     short qType;             \
  15.     short ioTrap;             \
  16.     Ptr ioCmdAddr;             \
  17.     ProcPtr ioCompletion;     \
  18.     OSErr ioResult;         \
  19.     StringPtr ioNamePtr;     \
  20.     short ioVRefNum;        \
  21.     short ioCRefNum;        \
  22.     short csCode
  23.  
  24. struct IPParamBlock {
  25.     ParamBlockHeader;            /* standard I/O header */
  26.     ip_addr    ourAddress;            /* our IP address */
  27.     long    ourNetMask;            /* our IP net mask */
  28.     };